<template>
  <div>Sister</div>
  <p>{{ age }}</p>
  <button @click="$emit('update:age', age + 2)">更新</button>
  <p>{{ count }}</p>
  <button @click="$emit('update:count', count + 2)">更新</button>
</template>

<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  name: "Sister",
  props: {
    age: {
      type: Number,
      required: true,
    },
    count: {
      type: Number,
      required: true,
    },
  },
  emits: ["update:age", "update:count"],
});
</script>

<style></style>
